package com.suishoupai.xmb.dao;

import com.suishoupai.xmb.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * Created by caojian on 2017/3/23.
 */
public interface CutUserMapper {
    User loadUserByEmail(@Param("email") String email);

    int updateByPrimaryKeySelective(User user);

    User selectByPrimaryKey(@Param("id") long id);

    int loginFailByPrimaryKey(@Param("id") long id);

    int resetLoginFail(@Param("limit") int limit);

    int resetLoginFailByPrimaryKeyWhenLoginFailNum(@Param("id") long id,@Param("loginFailNum") int loginFailNum);
}
